package com.luoran.system.config;

import org.yaml.snakeyaml.Yaml;

import java.io.InputStream;
import java.util.Map;

public class ConfigLoader {
    public static void main(String[] args) {
        Yaml yaml = new Yaml();
        try (InputStream in = ConfigLoader.class.getClassLoader().getResourceAsStream("xxl-job-config.yml")) {
            Map<String, Object> config = yaml.load(in);
            System.out.println(config);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
